/**
 * 公共组件自动导入导出
 */
const componentsModules = import.meta.glob('./*/index.jsx', { eager: true }),
	componentsList = [],
	componentsObj = {};

for (const [key, value] of Object.entries(componentsModules)) {
	const name = upperFirst(camelCase(key.match(/my-[a-z-]+/g)[0]));
	componentsList.push(name);
	componentsObj[name] = value.default;
}

// console.log(componentsList);

export const { MyCascader, MyDatePicker, MyForm, MyFormTable, MyIcon, MyInput, MyInputNumber, MyPermissions, MySelect } = componentsObj;
